(function() {
	Path.on("/user/__basename__.html", function(_current_location) {
		coAjax.get(appConfig.user.bus_bind, function(result) {
			console.log(result.result);
			App.set("$Cache.user.points.bus_user_bind", result.result);
		});
		App.set("$Event.user.points.weishenqingduihuan_to_shenqingduihuanzhong", function(e, vm) {
			if (!App.get("loginer.info.alipay")) {
				alert("warn", "您还未绑定支付宝账号，请到“个人信息”页进行设置，确保兑现顺利进行", 5000)
			};
			coAjax.put(appConfig.user.res_weishenqingduihuan_to_shenqingduihuanzhong, {
				bus_id: vm.get("bus_id")
			}, function(result) {
				console.log(result.result);
				vm.set(result.result);
			});
		});
		App.set("$Event.user.points.shangjiayijingfukuan_to_yonghuquerenfukuan", function(e, vm) {
			coAjax.put(appConfig.user.res_shangjiayijingfukuan_to_yonghuquerenfukuan, {
				bus_id: vm.get("bus_id")
			}, function(result) {
				console.log(result.result);
				vm.set(result.result);
			});
		});
	});
}());